<?php

/*
	Class: TodoContenttypes

	About: Author
		Jaybill McCarthy

	About: License
		<http://communit.as/docs/license>


*/
class TodoContenttypes extends Todo_Db_Table{

    protected $_name 	= 'todo_contenttypes';
    protected $_primary = 'contenttype_id';

	/* Group: Has No Methods */
	
	
	public function getByTablename($tablename){			
		return $this->fetchRow($this->select()->where("tablename = ?", $tablename));		
	}	
	
	public function getByContenttypeId($contenttype_id){			
		return $this->fetchRow($this->select()->where("contenttype_id = ?", $contenttype_id));		
	}
	
}